#ifndef BILLSMODEL_H
#define BILLSMODEL_H

#include <QAbstractTableModel>
#include "dbmscontainer.h"

class BillsModel : public QAbstractTableModel, public DbmsContainer
{
    Q_OBJECT
    QVariantList mqvl_indices;
public:
    explicit BillsModel(QObject *parent = 0);
    void load_data(const QDate &qd_target_filter = QDate(), bool do_by_lease = true, bool do_by_nlease=true);
    int rowCount(const QModelIndex &parent) const;
    int columnCount(const QModelIndex &parent) const;
    QVariant data(const QModelIndex &index, int role) const;
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    QVariant get_db_index(const QModelIndex &index);
    QModelIndex get_model_index(const QVariant &qv_index);
signals:

public slots:

};

#endif // BILLSMODEL_H
